package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.kly.user.db.dao.UserEvaluateRewardDao;
import com.kly.user.db.entity.UserEvaluateRewardEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
* User: a
* Date: 2023-10-25
* Time: 19:49:04.178
*/

@Repository
public class UserEvaluateRewardDaoImpl extends AbstractBaseMapper<UserEvaluateRewardEntity> implements UserEvaluateRewardDao {

    @Override
    public int userEvaluateRewardCount(String userCode, int date) {
        Map<String, Object> params = new HashMap<>();
        params.put("userCode", userCode);
        params.put("date", date);
        return (Integer) getSqlSession().selectOne(this.getStatement("userEvaluateRewardCount"), params);
    }
}